<template>
	<view :style="themeColor">
		<view class="page">
			<view
				class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex system_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-stretch justify-between system_fd0_0'>
					<view class='flex flex-wrap align-center system_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">
						<text class='fu-iconfont2  system_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='system_fd0_0_c1_c0'>设置</text>
					</view>
					<view class='flex align-center justify-end system_fd0_0_c2'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---基本设置flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch system_flex_1">
				<view class='flex flex-direction flex-wrap align-stretch system_fd1_0' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pages/xtsz/changePwd/changePwd`">
					<view class='flex flex-wrap align-center justify-between system_fd1_0_c0'>
						<text class='system_fd1_0_c0_c0'>修改密码</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
				</view>
				<view class='flex flex-wrap align-center system_fd1_1'>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch system_fd1_2'>
					<view class='flex flex-wrap align-center justify-between system_fd1_2_c0' @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/dlzc/agreements/agreements?type=1`">
						<text class='system_fd1_0_c0_c0'>用户协议</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between system_fd1_2_c0' @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/dlzc/agreements/agreements?type=2`">
						<text class='system_fd1_0_c0_c0'>隐私政策</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between system_fd1_0_c0' @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/xtsz/aboutUs/aboutUs`">
						<text class='system_fd1_0_c0_c0'>关于我们</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
				</view>
				<view class='flex flex-wrap align-center system_fd1_1'>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch system_fd1_2'>
					<view class='flex flex-wrap align-center system_fd1_2_c0' @tap.stop="cleanUpFunc">
						<text class='system_fd1_0_c0_c0'>清除缓存</text>
						<text class='system_fd1_4_c0_c1'>{{appRubbishCacheSize}}</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center system_fd1_0_c0' @tap.stop="updataFunc()">
						<text class='system_fd1_0_c0_c0'>检查更新</text>
						<text class='system_fd1_4_c0_c1'>{{appVersion}}</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
				</view>
				<view class='flex flex-wrap align-center system_fd1_1'>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch system_fd1_2' @tap.stop="gozhuxiaoFunc()">
					<view class='flex flex-wrap align-center justify-between system_fd1_0_c0'>
						<text class='system_fd1_0_c0_c0'>注销账号</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
				</view>
			</view>

			<benben-popup v-model="popupShow1656992350800" :mask="true" :mask-close-able="true" mode='center'>
				<!---退出登录flex布局开始-->
				<view class="flex flex-direction flex-wrap align-center system_flex_4"
					@tap.stop="popupShow1650940432200=true">
					<text class='system_fd4_0'>提示</text>
					<text class='system_fd4_1'>确定退出当前账号？</text>
					<view class='flex align-center system_fd2_2'>
						<button class='system_fd4_2_c0' @tap.stop="popupShow1656992350800=false">取消</button>
						<button class='system_fd4_2_c1' @tap.stop="loginOut">确定</button>
					</view>
				</view>

			</benben-popup>
			<view class="flex flex-wrap align-center justify-center benben-position-layout flex system_flex_3"
				@tap.stop="popupShow1656992350800=true">
				<button class='system_fd3_0'>退出登录</button>

			</view>
			<view :style="{height: '140rpx'}"></view>

			<benben-popup v-model="popupShow1679541357000" :mask="true" :mask-close-able="true" mode='center'>
				<!---清除缓存flex布局开始-->
				<view class="flex flex-direction flex-wrap align-center system_flex_4"
					@tap.stop="popupShow1650940432200=true">
					<text class='system_fd4_0'>提示</text>
					<text class='system_fd4_1'>确定要清除本地缓存？</text>
					<view class='flex align-center system_fd4_2'>
						<button class='system_fd4_2_c0' @tap.stop="popupShow1679541357000=false">取消</button>
						<button class='system_fd4_2_c1' @tap.stop="cleanUpFunc()">确定</button>
					</view>
				</view>

				<!---清除缓存flex布局结束-->

			</benben-popup>
			<app-update ref="update"></app-update>


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"popupShow1679541357000": false,
				"popupShow1656992350800": false,
				"dataMessage": {
					"aid": "",
					"user_nickname": "",
					"user_avatar": "",
					"user_mobile": "",
					"cancel_type": "",
					"create_time": "",
					"status": "",
					"cancel_reason": "",
					"cancel_type_text": ""
				}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			appVersion() {
				// 获取版本号
				return this.$store.state.appVersion
			},
			appRubbishCacheSize() { // 获取缓存大小
				return this.$store.state.appRubbishCacheSize
			}
		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.$store.dispatch('getAppVersion') // 更新版本号
			this.$store.dispatch('getAppCache') // 更新缓存大小
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//清除缓存
			cleanUpFunc() {
				this.popupShow1679541357000 = false;
				this.$store.dispatch('appClearCache')
			},
			//APP更新
			updataFunc() {
				this.$util.debounce(
					() => {
						this.$refs.update.checkAppUpdate()
					},
					1000,
					true
				)
			},
			//获取注销状态1提交 3驳回
			gozhuxiaoFunc() {
				uni.navigateTo({
					url: `/pages/xtsz/CancelAccount/CancelAccount`
				})
			},
			//退出登录
			loginOut() {
				this.popupShow1656992350800 = false;
				this.$store.commit('logout');
				uni.reLaunch({
					url: '/pages/tabBar/loginPage/loginPage'
				})
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #f6f7f9;
		background-size: 100% auto;
	}

	.system_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.system_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 100rpx;
	}

	.system_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: var(--benbenFontColor0);
	}

	.system_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
	}

	.system_fd0_0_c0 {
		width: 100rpx;
	}

	.system_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.system_flex_1 {
		font-size: 32rpx;
		padding: 0rpx 36rpx 64rpx 36rpx;
	}

	.system_fd1_4_c0_c1 {
		font-size: 28rpx;
		color: rgba(102, 102, 102, 1);
		margin: 0rpx 24rpx 0rpx auto;
	}

	.system_fd1_2_c0 {
		border-bottom: 1px solid #eee;
		padding: 40rpx 0rpx 40rpx 0rpx;
	}

	.system_fd1_2 {
		background: #fff;
		padding: 0rpx 40rpx 0rpx 40rpx;
		background-size: 100% auto !important;
		border-radius: 16rpx;
	}

	.system_fd1_1 {
		background: rgba(248, 248, 248, 1);
		height: 24rpx;
		background-size: 100% auto !important;
	}

	.system_fd1_0_c0_c1 {
		font-size: 26rpx;
		color: rgba(191, 191, 191, 1);
	}

	.system_fd1_0_c0_c0 {
		font-size: 32rpx;
		color: var(--benbenFontColor0);
	}

	.system_fd1_0_c0 {
		padding: 40rpx 0rpx 40rpx 0rpx;
	}

	.system_fd1_0 {
		background: #fff;
		padding: 0rpx 40rpx 0rpx 40rpx;
		background-size: 100% auto !important;
		border-radius: 16rpx;
		margin: 32rpx 0rpx 0rpx 0rpx;
	}

	.system_flex_2 {
		background: #fff;
		width: 540rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.system_fd2_2_c1 {
		border-top: 1px solid #eee;
		border-left: 1px solid #eee;
		background: #fff;
		line-height: 110rpx;
		border-radius: 0rpx 0rpx 16rpx 0rpx;
		font-size: 32rpx;
		color: var(--benbenFontColor5);
		width: 268rpx;
	}

	.system_fd2_2_c0 {
		border-top: 1px solid #eee;
		background: #fff;
		line-height: 110rpx;
		border-radius: 0rpx 0rpx 0rpx 16rpx;
		font-size: 32rpx;
		color: rgba(153, 153, 153, 1);
		padding: 0rpx 103rpx 0rpx 103rpx;
	}

	.system_fd2_2 {
		margin: 37rpx 0rpx 0rpx 0rpx;
	}

	.system_fd2_1 {
		line-height: 44rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
	}

	.system_fd2_0 {
		font-size: 36rpx;
		font-weight: 800;
		line-height: 44rpx;
		color: #333333;
		margin: 40rpx 0rpx 40rpx 0rpx;
	}

	.system_flex_3 {
		background: #fff;
		width: 750rpx;
		height: 140rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(0rpx + var(--window-bottom));
		background-size: 100% auto !important;
	}

	.system_fd3_0 {
		// border: 2px solid var(--benbenbdColor0);
		background: #fff;
		border-radius: 44rpx 44rpx 44rpx 44rpx;
		font-size: 32rpx;
		color: rgba(51, 51, 51, 1);
		width: 638rpx;
		height: 88rpx;
		line-height: 88rpx;
		margin: 0rpx 24rpx 0rpx 24rpx;
		font-weight: 500;
	}

	.system_flex_4 {
		background: #fff;
		width: 580rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding-bottom: 32rpx;
	}

	.system_fd4_2_c1 {
		width: 254rpx;
		height: 80rpx;
		background: #E60012;
		line-height: 80rpx;
		border-radius: 16rpx;
		font-size: 28rpx;
		color: #fff;
		margin-left: 12rpx;
	}

	.system_fd4_2_c0 {
		width: 254rpx;
		height: 80rpx;
		background: #F5F5F5;
		line-height: 80rpx;
		border-radius: 16rpx;
		font-size: 28rpx;
		color: #666;
		margin-right: 12rpx;
	}

	.system_fd4_2 {
		margin: 37rpx 0rpx 0rpx 0rpx;
	}

	.system_fd4_1 {
		line-height: 44rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
	}

	.system_fd4_0 {
		font-size: 36rpx;
		font-weight: 600;
		line-height: 42rpx;
		color: #333333;
		margin: 40rpx 0rpx 40rpx 0rpx;
	}
</style>